package com.zx.idc.backend.gui.sys;


import com.zx.idc.backend.gui.common.BaseApi;
import com.zx.idc.backend.gui.common.Result;
import com.zx.idc.ds.sys.entity.SystemInfo;
import com.zx.idc.ds.sys.service.ISystemInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 系统信息
 * </p>
 *
 * @author rxliuli
 * @since 2019-01-31
 */
@RestController
@RequestMapping("/api/systemInfo")
public class SystemInfoController extends BaseApi {
    @Autowired
    private ISystemInfoService iSystemInfoService;

    @GetMapping("/info")
    public Result<SystemInfo> info() {
        return success(iSystemInfoService.info());
    }
}

